package com.ruoyi.asset.homepage.enums;

import lombok.Getter;

@Getter
public enum ServiceTypeEnum {

    CLEANING("清扫保洁","1"),
    RECYCLE("垃圾清运","2"),
    TOILET("市政公厕管养","3"),
    GREENERY("道路绿化管养","4"),
    PARK("公园管养","5"),
    MAINTENANCE("一体化维修","6"),
    LAMP("路灯管养","7"),
    SORTING("垃圾分类督导","8"),
    EXTERMINATION("四害消杀","9");

    private String typeName;
    private String value;

    ServiceTypeEnum(String typeName,String value){
        this.typeName = typeName;
        this.value = value;
    }

    public static String getByValue(String value) {
        for (ServiceTypeEnum s : ServiceTypeEnum.values()) {
            if (s.value.equals(value)) {
                return s.getTypeName();
            }
        }
        return null;
    }
}
